﻿using UnityEngine;

public class PlayerControl : MonoBehaviour
{
    
    public CircleMan Man;
    internal void Update()
    {
        //var dir = Vector3.zero;
        if (Input.GetKey(KeyCode.W))
        {
            Man.Move(transform.forward);
        }
        else if (Input.GetKey(KeyCode.S))
        {
            Man.Move(-transform.forward);
        }

        if (Input.GetKey(KeyCode.A))
        {
            Man.Rotate(new Vector3(0, -1, 0));
        }
        else if (Input.GetKey(KeyCode.D))
        {
            Man.Rotate(new Vector3(0, 1, 0));
        }
    }


}